<?php
require_once 'MyPdo.class.php';
class MyPdoIndex{
	public static function init($config,$stat = false){
		if(!$config['db_host'] || !$config['db_name']){
			exit('MyPdoIndex.class.php on line 6');
		}
		$db_host = IpDecrypt($config['db_host']);
		$db_name = $config['db_name'];
		return MyPdo::init($db_host,$db_name,$config['county_db_user'],$config['share_db_pwd'],$stat);
	}

}
